package com.shuiyun.dao;

import com.shuiyun.entity.User;
import com.shuiyun.utils.Query;
import org.apache.ibatis.annotations.Param;
import sun.util.resources.cldr.gu.LocaleNames_gu;

import java.util.List;

public interface UserMapper {
    int countByExample(UserExample example);

    int deleteByExample(UserExample example);

    int deleteByPrimaryKey(Integer userId);

    int insert(User record);

    int insertSelective(User record);

    List<User> selectByExample(UserExample example);

    User selectByPrimaryKey(Integer userId);

    int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);

    int updateByExample(@Param("record") User record, @Param("example") UserExample example);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
    
    List<User> findUserByPage(Query query);

    long findTotalCount(Query query);

    int deleteBatch(Long[] ids);

    Integer findUserIdByName(String userName);

    List<User> findAll();
}